package com.cjy.service;

import com.cjy.pojo.Books;

import java.util.List;

public class bookServiceImpl implements bookService{
    private com.cjy.dao.bookMapper bookMapper;

    public void setBookMapper(com.cjy.dao.bookMapper bookMapper) {
        this.bookMapper = bookMapper;
    }


    @Override
    public List<Books> queryAllBook() {
        return bookMapper.queryAllBook();
    }

    @Override
    public int addBook(Books books) {
        return bookMapper.addBook(books);
    }

    @Override
    public List<Books> queryBookByIsbn(String BookIsbn) {
        return bookMapper.queryBookByIsbn(BookIsbn);
    }

    @Override
    public int deleteBookByIsbn(String  Isbn) {
        return bookMapper.deleteBookByIsbn(Isbn);
    }

    @Override
    public Books queryBookById(int id) {
        return bookMapper.queryBookById(id);
    }


}
